#include <iostream>
#include <cmath>
#include "Triangle.h"

using namespace std;

Triangle::Triangle ( const double &x, const double &y, const double &z ) {
    a = x;
    b = y;
    c = z;
}
double Triangle::getArea () const {
    double p = ( a + b + c ) / 2;
    return sqrt ( p * ( p - a) * ( p - b ) * ( p - c ) );
}

double Triangle::getPerimeter () const {
    return a + b + c;
}

void Triangle::draw ()  const {
    cout << "Ve hinh tam giac voi do dai 3 canh la a, b, c";
}
